<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Parse parameter list</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.http-parse-message.html">http_parse_message</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-persistent-handles-clean.html">http_persistent_handles_clean</a></div>
 <div class="up"><a href="ref.http.html">HTTP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.http-parse-params" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">http_parse_params</h1>
  <p class="verinfo">(PECL pecl_http &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">http_parse_params</span> &mdash; <span class="dc-title">Parse parameter list</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.http-parse-params-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">object</span> <span class="methodname"><strong>http_parse_params</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$param</code></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$flags</code><span class="initializer"> = HTTP_PARAMS_DEFAULT</span></span>
  ] )</div>

  <p class="para rdfs-comment">
   Parse parameter list.
  </p>
  <p class="para">
   See the <a href="http.constants.html#http.constants.params" class="link">params parsing constants table</a> for possible 
   values of the <em><code class="parameter">flags</code></em> argument.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.http-parse-params-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<em><code class="parameter">param</code></em></dt>

     <dd>

      <p class="para">
       Parameters
      </p>
     </dd>

    
    
     <dt>
<em><code class="parameter">flags</code></em></dt>

     <dd>

      <p class="para">
       Parse flags
      </p>
     </dd>

    
   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.http-parse-params-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns parameter list as stdClass object.
  </p>
 </div>


 


 


 <div class="refsect1 examples" id="refsect1-function.http-parse-params-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-4275">
    <p><strong>Example #1 A <span class="function"><strong>http_parse_params()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">http_parse_params</span><span style="color: #007700">(</span><span style="color: #DD0000">"text/html;&nbsp;charset=\"utf8\""</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
object(stdClass)#1 (1) {
  [&quot;params&quot;]=&gt;
  array(2) {
    [0]=&gt;
    string(9) &quot;text/html&quot;
    [1]=&gt;
    array(1) {
      [&quot;charset&quot;]=&gt;
      string(4) &quot;utf8&quot;
    }
  }
}
</pre></div>
    </div>
   </div>
  </p>
 </div>



 <div class="refsect1 seealso" id="refsect1-function.http-parse-params-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.http-parse-headers.html" class="function" rel="rdfs-seeAlso">http_parse_headers()</a> - Parse HTTP headers</span></li>
    <li class="member"><span class="function"><a href="function.http-parse-cookie.html" class="function" rel="rdfs-seeAlso">http_parse_cookie()</a> - Parse HTTP cookie</span></li>
    <li class="member"><span class="function"><a href="function.http-parse-message.html" class="function" rel="rdfs-seeAlso">http_parse_message()</a> - Parse HTTP messages</span></li>
   </ul>
  </p>
 </div>



</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.http-parse-message.html">http_parse_message</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.http-persistent-handles-clean.html">http_persistent_handles_clean</a></div>
 <div class="up"><a href="ref.http.html">HTTP 函数</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
